package com.igroupes.ovineherd.query;

import com.igroupes.ovineherd.entity.DataModelTableEntity;
import lombok.Data;

import java.util.List;

@Data
public class TableFieldQuery {
    private String dataBase;
    private String tableName; //表名
    private String tableComment; //表说明
    private String indexName; //索引名称
    private List<String> indexList; //索引集合
    private List<String> primaryList; //主键集合
    private List<FieldQuery> fieldList; //字段集合
    private DataModelTableEntity dataModelTableEntity;

    public TableFieldQuery() {
    }

    public TableFieldQuery(List<FieldQuery> fieldList) {
        this.fieldList = fieldList;
    }

    public TableFieldQuery(String tableName, List<FieldQuery> fieldList) {
        this.tableName = tableName;
        this.fieldList = fieldList;
    }
}
